/**
 * list组件
 */
<template>
	<view>
		<view class="v-list">
			<view class="list-item v-arrow" v-for="(item,index) in dataList" :key="index" @click="onClick(item.title)">
				<view class="list-image">
					<image :src="item.src" class="list-image" ></image>
				</view>
				<view class="list-title" :style="[{color:flag?'#4693EC':'#FE95A4'}]">
					{{item.title}}
				</view>
				<view class="list-content" :style="[{color:flag?'#4693EC':'#FE95A4'}]">
					{{item.content}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		props:['dataList','flag'],
		methods:{
			onClick(title) {
				this.$emit('click',{title:title})
			},
		}
	}
</script>

<style scoped>
	.list-title{
		height: 180upx;
		width: 200upx;
		line-height: 180upx;
		font-size: 40upx;
		color: #FE95A4;
	}
	.list-content{
		font-size: 26upx;
		height: 180upx;
		line-height: 180upx;
		color: #FE95A4;
	}
	.list-image{
		width: 200upx;
		height: 180upx;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.list-image image{
		width: 120upx;
		height: 120upx;
	}
	.list-item{
		position: relative;
		width: 100%;
		display: flex;
		justify-content: space-between;
		height: 180upx;
		border-bottom: 4upx solid #ECECEC;
	}
	.v-arrow{
		padding-right: 90upx;
	}
	.v-arrow:before {
		position: absolute;
		top: 0;
		right: 50upx;
		bottom: 0;
		display: block;
		margin: auto;
		width: 30upx;
		height: 30upx;
		color: #C8C8C8;
		content: "\e6a3";
		text-align: center;
		font-size: 50upx;
		font-family: cuIcon;
		line-height: 30upx;
	}
</style>
